<!DOCTYPE html>
<html xmlns:th="http://www.w3.org/1999/xhtml">
<head th:replace="fragments :: head(~{::title})">
    <title>帮我买</title>
</head>
<body>
<!--轮播图-->
<div th:replace="fragments :: banner"></div>
<div class="am-tabs qiehuan" data-am-tabs>
    <ul class="am-tabs-nav am-nav am-nav-tabs" style="margin-bottom: 10px">
        <li class="am-active"><a href="#">帮我取</a></li>
    </ul>
    <div>
        <div class="am-tab-panel">
            <form th:action="@{/order/addForTake}" method="post" th:if="${errorMsg == null}">
                <input type="text" placeholder="帮取的物品(必需)" class="tab-input" name="goods"/>
                <input type="text" placeholder="取货地址(必需)" class="tab-input" name="pickupAddress"/>
                <input type="text" placeholder="收货人姓名(必需)" class="tab-input" name="consignee"/>
                <input type="text" placeholder="收货人电话(必需)" class="tab-input" name="consigneeMobile"/>
                <input type="text" placeholder="收货人地址(必需)" class="tab-input" name="customerAddress"/>
                <input type="text" placeholder="详细信息" class="tab-input" name="detail"/>
                <button type="submit" class="tab-btn">提交</button>
            </form>
            <form th:action="@{/order/addForTake}" method="post" th:if="${errorMsg != null}">
                <input th:value="${session.orderTemporary.goods}" type="text" placeholder="帮取的物品(必需)" class="tab-input" name="goods"/>
                <input th:value="${session.orderTemporary.pickupAddress}" type="text" placeholder="取货地址(必需)" class="tab-input" name="pickupAddress"/>
                <input th:value="${session.orderTemporary.consignee}" type="text" placeholder="收货人姓名(必需)" class="tab-input" name="consignee"/>
                <input th:value="${session.orderTemporary.consigneeMobile}" type="text" placeholder="收货人电话(必需)" class="tab-input" name="consigneeMobile"/>
                <input th:value="${session.orderTemporary.customerAddress}" type="text" placeholder="收货人地址(必需)" class="tab-input" name="customerAddress"/>
                <input th:value="${session.orderTemporary.detail}" type="text" placeholder="详细信息" class="tab-input" name="detail"/>
                <p style="color: red" th:text="${errorMsg}"></p>
                <button type="submit" class="tab-btn">提交</button>
            </form>
        </div>
    </div>
</div>
<div class="h50"></div>
<!--底部-->
<div th:replace="fragments :: footer"></div>
</body>
<script>

</script>
</html>
